//
//  XZSegmentConfig.m
//  XZSegmentDemo
//
//  Created by Dreamer on 2018/1/28.
//  Copyright © 2018年 dreamer. All rights reserved.
//

#import "XZSegmentConfig.h"

@implementation XZSegmentConfig

+ (instancetype)defaultConfig {
    return [[XZSegmentConfig alloc] init];
}

- (UIColor *)titleScrollViewColor {
    if (!_titleScrollViewColor) {
        _titleScrollViewColor = [UIColor whiteColor];
    }
    return _titleScrollViewColor;
}

- (UIColor *)segNormalColor {
    if (!_segNormalColor) {
        _segNormalColor = [UIColor grayColor];
    }
    return _segNormalColor;
}

- (UIColor *)segSelectedColor {
    if (!_segSelectedColor) {
        _segSelectedColor = [UIColor redColor];
    }
    return _segSelectedColor;
}

- (UIFont *)segNormalFont {
    if (!_segNormalFont) {
        _segNormalFont = [UIFont systemFontOfSize:12];
    }
    return _segNormalFont;
}

- (UIFont *)segSelectedFont {
    if (!_segSelectedFont) {
        _segSelectedFont = [UIFont systemFontOfSize:12];
    }
    return _segSelectedFont;
}

- (UIColor *)underLineColor {
    if (!_underLineColor) {
        _underLineColor = [UIColor redColor];
    }
    return _underLineColor;
}

- (UIColor *)coverViewColor {
    if (!_coverViewColor) {
        _coverViewColor = [UIColor lightGrayColor];
    }
    return _coverViewColor;
}

- (CGFloat)segTitleMargin {
    if (_segTitleMargin <= 0) {
        _segTitleMargin = 25;
    }
    return _segTitleMargin;
}

- (CGFloat)underLineH {
    if (_underLineH <= 0) {
        _underLineH = 2;
    }
    return _underLineH;
}

@end
